<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../base.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<script type="text/javascript" src="${ctx }/js/datepicker/WdatePicker.js"></script>
</head>

<body>
<form name="icform" method="post">

<div id="menubar">
<div id="middleMenubar">
<div id="innerMenubar">
  <div id="navMenubar">
<ul>
<li id="save"><a href="#" onclick="formSubmit('shippingOrderAction_insert','_self');this.blur();">保存</a></li>
<li id="back"><a href="#" onclick="history.go(-1);">返回</a></li>
</ul>
  </div>
</div>
</div>
</div>
   
  <div class="textbox-title">
	<img src="../../staticfile/skin/default/images/icon/currency_yen.png"/>
   新增委托单
  </div>



	<div>
		<table class="commonTable" cellspacing="1">
			<tr>
				<td class="columnTitle">海运/空运：</td>
				<td class="tableContent"><input type="text" name="orderType" value=""/></td>

				<td class="columnTitle">货主：</td>
				<td class="tableContent"><input type="text" name="shipper" value=""/></td>
			</tr>
			<tr>
				<td class="columnTitle">提单抬头：</td>
				<td class="tableContent"><input type="text" name="consignee" value=""/></td>

				<td class="columnTitle">正本通知人：</td>
				<td class="tableContent"><input type="text" name="notifyParty" value=""/></td>
			</tr>
			<tr>
				<td class="columnTitle">信用证：</td>
				<td class="tableContent"><input type="text" name="lcNo" value=""/></td>

				<td class="columnTitle">装运港：</td>
				<td class="tableContent"><input type="text" name="portOfLoading" value=""/></td>
			</tr>
			<tr>
				<td class="columnTitle">转船港：</td>
				<td class="tableContent"><input type="text" name="portOfTrans" value=""/></td>

				<td class="columnTitle">卸货港：</td>
				<td class="tableContent"><input type="text" name="portOfDischarge" value=""/></td>
			</tr>
			<tr>
				<td class="columnTitle">装期：</td>
				<td class="tableContent">
					<input type="text" style="width:90px;" name="loadingDate"
							value=""
							onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"/>
				</td>

				<td class="columnTitle">效期：</td>
				<td class="tableContent">
					<input type="text" style="width:90px;" name="limitDate"
						   value=""
						   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"/>
				</td>
			</tr>

			<tr>
				<td class="columnTitle">是否分批：</td>
				<td class="tableContent">
					<input type="radio" name="isBatch" style="width:15px;height:15px" value="1"/>是
					<input type="radio" name="isBatch" style="width:15px;height:15px" value="0"/>否
				</td>

				<td class="columnTitle">是否转船：</td>
				<td class="tableContent">
					<input type="radio" name="isTrans" style="width:15px;height:15px" value="1"/>是
					<input type="radio" name="isTrans" style="width:15px;height:15px" value="0"/>否

				</td>
			</tr>
			<tr>
				<td class="columnTitle">复核人：</td>
				<td class="tableContent"><input type="text" name="checkBy" value=""/></td>

				<td class="columnTitle">份数：</td>
				<td class="tableContent"><input type="text" name="copyNum" value=""/></td>
			</tr>
			<tr>
				<td class="columnTitle">扼要说明：</td>
				<td class="tableContent"><textarea name="remark" style="height:80px;"></textarea>

				<td class="columnTitle">运输要求：</td>
				<td class="tableContent"><textarea name="specialCondition" style="height:80px;"></textarea>
			</tr>
			<tr>
				<td class="columnTitle">运费说明：</td>
				<td class="tableContent"><textarea name="freight" style="height:80px;"></textarea>
			</tr>

		</table>
	</div>
	<div>

		<div class="eXtremeTable" >
			<table id="ec_table" class="tableRegion" width="98%" >
				<thead>
				<tr>

					<td class="tableHeader"><input type="checkbox" name="selid" <%--onclick="checkAll('id',this)"--%>></td>
					<td class="tableHeader">序号</td>
					<td class="tableHeader">卖方</td>
					<td class="tableHeader">买方</td>
					<td class="tableHeader">发票号</td>
					<td class="tableHeader">发票日期</td>
					<td class="tableHeader">状态</td>
				</tr>
				</thead>
				<tbody class="tableBody" >
				${links}

				<c:forEach items="${results}" var="o" varStatus="status">
					<tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'" >
						<td><input type="radio" name="id" value="${o.id}"/></td>
						<td>${status.index+1}</td>
						<td>${o.seller}</td>
						<td>${o.buyer}</td>
						<td>${o.invoiceNo}</td>
						<td>${o.invoiceDate}</td>
						<td>
							<c:if test="${o.state==0}">草稿</c:if>
							<c:if test="${o.state==1}"><b><font color="green">已上报</font></b></c:if>
						</td>
					</tr>
				</c:forEach>

				</tbody>
			</table>
		</div>

	</div>
 
</form>
</body>
</html>

